package com.lixueju.security.box.core.properties;

/**
 * @author lixueju
 * @since 2019/11/13 15:09
 **/
public interface SecurityBoxConstants {
    /**
     * 默认的登录请求处理url
     */
    String DEFAULT_LOGIN_PROCESSING_URL = "/security/box/login/**";
    String DEFAULT_LOGIN_PROCESSING_URL_USERNAME = "/security/box/login/username";
    String DEFAULT_LOGIN_PROCESSING_URL_SMS = "/security/box/login/sms";
    String DEFAULT_LOGIN_PROCESSING_URL_EMAIL = "/security/box/login/email";
    String DEFAULT_LOGIN_PROCESSING_URL_ZHIFUBAO = "/security/box/login/zhifubao";
    String DEFAULT_LOGIN_PROCESSING_URL_WEIXIN = "/security/box/login/weixin";
    String DEFAULT_LOGIN_PROCESSING_URL_WEIXIN_DECODE = "/security/box/login/weixin/decode";

    /**
     * 验证码相关默认信息
     */
    //默认的处理验证码的url前缀
    String DEFAULT_VALIDATE_CODE_URL_PREFIX = "/security/box/code";
    //验证图片验证码时，http请求中默认的携带图片验证码信息的参数的名称
    String DEFAULT_PARAMETER_NAME_CODE_IMAGE = "imageCode";
    //验证短信验证码时，http请求中默认的携带短信验证码信息的参数的名称
    String DEFAULT_PARAMETER_NAME_CODE_SMS = "smsCode";
    //发送短信验证码 或 验证短信验证码时，传递手机号的参数的名称
    String DEFAULT_PARAMETER_NAME_MOBILE = "mobile";

    /**
     * 默认的密钥信息
     */
    String DEFAULT_KEY_STORE_LOCATION = "securityBox.keystore";
    String DEFAULT_KEY_STORE_SECRET = "SecurityBoxStorePass";
    String DEFAULT_KEY_STORE_ALIAS = "securityBoxAlias";
    String DEFAULT_KEY_STORE_PASSWORD = "securityBoxKeypass";

    /**
     * 默认的客户端信息
     */
    String DEFAULT_CLIENT_ID = "securityBoxClientId";
    String DEFAULT_CLIENT_SECRET = "securityBoxClientSecret";
    Integer DEFAULT_CLIENT_ACCESS_TOKEN_VALIDITY_SECONDS = 60 * 60 * 24;// 单位（秒）
    Integer DEFAULT_CLIENT_REFRESH_TOKEN_VALIDITY_SECONDS = 60 * 60 * 24 * 30;// 单位（秒）
    String DEFAULT_CLIENT_SCOPES = "all";

    /**
     * token在header的key名称
     */
    String DEFAULT_TOKEN_KEY = "token";

    /**
     * 默认的一些URL
     */
    //  绑定手机号
    String DEFAULT_URL_BIND_MOBILE = "/security/box/user/bindMobile";
    String DEFAULT_URL_UPPASSWORD_BY_MOBILE = "/security/box/user/upPasswordByMobile";


}
